<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


{# 导入文件弹窗#}
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
    Launch demo modal
</button>
<a href="javascript:void (0)" >testt</a>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="width: 300px">
            <div style="font-size: 20px">上传文件</div>
            <hr>
            <div class="modal-body">
                <form enctype="multipart/form-data">
                    <div>
                        <label for="input-files" class="btn btn-primary">导入文件</label>
                        <input type="file" name="test_files" id="input-files" style="width: 0">
                        <div class="file-name"></div>
                    </div>
                </form>
            </div>
            <hr>
            <div style="padding-right: 20px; border: 1px solid red">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary submit-files">提交</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>